package com.ruoyi.dynamic.model.pojo.request.app;


import com.ruoyi.common.core.annotation.valid.group.ValidGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@Schema( description = "APP-房间公告添加编辑")
public class AppRoomNoticeAddOrEditRequest {

    @Schema(description = "房间公告id")
    @NotNull(message = "房间公告id不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private Long roomNoticeId = 0L;

    @Schema(description = "房间id")
    @NotNull(message = "房间不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private Long roomId;

    @Schema(description = "标题")
    @NotBlank(message = "标题不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private String title;

    @Schema(description = "内容")
    @NotBlank(message = "内容不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private String content;
}
